package cn.openea.perpartner.payment.web.coupon.service;

import cn.openea.perpartner.payment.web.coupon.entity.CouponBatch;
import cn.openea.perpartner.payment.web.coupon.entity.dto.CouponDto;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 平台优惠券表(Coupon)表服务接口
 *
 * @author Weird077
 * @since 2023-04-14 14:29:48
 */
public interface ICouponBatchService extends IService<CouponBatch> {

    List<CouponBatch> selectCouponList(CouponBatch coupon);

    boolean checkCouponUsed(long recordId);

    boolean checkCouponExist(Long couponId);

    boolean checkCouponCap(Long couponId);

    boolean checkUserCouponCap(String userId, Long couponId);

    boolean createAndIssueCoupon(CouponDto couponDto);
}

